package com.ybg.engine.config;

import java.util.List;
import java.util.Map;

import org.springframework.jdbc.core.JdbcTemplate;

public class SystemConfigDao {

	private JdbcTemplate jdbcTemplate;

	public SystemConfigDao(JdbcTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}

	public List<Map<String, Object>> query() {
		String sql = "select * from system_config";
		return jdbcTemplate.queryForList(sql);
	}
}
